package com.aaa.statistics.Controller.api;

import com.aaa.statistics.service.RevenueService;
import com.aaa.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("statistics/api/RevenueSts")
public class RevenueController {

    @Resource
    private RevenueService revenueService;

    /**
     * 收入统计
     * getRevStatisticsData
     */
    @PostMapping("getRevStatisticsData/{dateRange}")
    public Result<Map<String,Object>> getRenData(@PathVariable String[] dateRange){
        return revenueService.getRenData(dateRange);
    }
}
